﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cwtrock.dao.impl;
using cwtrock.model;

namespace cwtrock.service.impl
{
    class SysVouKeywordServiceImpl
    {
        private SysVouKeywordDaoImpl  dao = new SysVouKeywordDaoImpl();

        public void save(SysVouKeywork currency)
        {
            dao.save(currency);
        }

        public void update(SysVouKeywork currency)
        {
            dao.update(currency);
        }

        public SysVouKeywork getKeywords(int id)
        {
            return dao.getKeyword(id);
        }

        public void delete(int id)
        {
            dao.delSysVouKeyword(id);

        }

        public List<SysVouKeywork> findAll()
        {
            return dao.getAllKeyword();

        }

    }
}
